from django.conf.urls import patterns, include, url
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    ('^$', 'Prova.views.index'),
    (r'^compromissos$', 'Prova.views.index'),
    (r'static/(?P<path>.*)$', 'django.views.static.serve',  {'document_root': '/home/%s/src/gerenciadorfaculdade/Prova/static' % os.getlogin()}),
    (r'^prova/(\d+)/$', 'Prova.views.prova'),
    (r'^materia/cadastrar$', 'Prova.views.cadastraMateria'),
    (r'^trabalho/(\d+)/$', 'Prova.views.trabalho'),
    (r'^prova/cadastrar$', 'Prova.views.cadastraProva'),
    (r'^trabalho/cadastrar$', 'Prova.views.cadastraTrabalho'),
    url(r'^admin/', include(admin.site.urls)),
    
    # Examples:
    # url(r'^$', 'Faculdade.views.home', name='home'),
    # url(r'^Faculdade/', include('Faculdade.foo.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    
)
